<span class="account_orders_header_right">
    Qdfdfuestions?
    <a href="/contact/">Contact Us</a>
</span>
<div style="clear: both"></div>
</div>
<div class="account_main_text_content">
    <div class="shipping-adreses">

        <ul class="shipping-list">
            <li class="add_shipping">
                <a href="<?=$controller.'change/'?>">+ ADD NEW</a>
            </li>
            <?php
            foreach($adresses as $adress){
                if($adress['primary']!=1){
                    $setPrimary='<a href="'.$controller.'primaryship/'.$adress['id'].'">Set as primary</a>';
                }else{$setPrimary='';}
                echo'<li>
                        '.$adress['name1'].'<br />
                        '.$adress['name2'].'<br />
                        '.$adress['country'].' '.$adress['postal'].' '.$adress['state'].'<br />
                        '.$adress['city'].'<br />
                        '.$adress['street'].'<br />
                        <div class="ship-pane">
                            <a href="'.$controller.'change/'.$adress['id'].'">Edit</a><br />
                            <a href="'.$controller.'dropship/'.$adress['id'].'">Delete</a><br />
                            '.$setPrimary.'
                        </div>
                    </li>';
            }
            ?>
        </ul>
    </div>
</div>